package hibernate.method.interfaces;

import hibernate.model.Invitation;

import java.util.List;

import org.hibernate.Session;
import org.hibernate.SessionFactory;

public interface InvitationMethodsInterface {

	public List<Invitation> listActiveInvitationsByReceiver(SessionFactory sessionFactory, Session session, int to_id);
	
	public List<Invitation> listActiveInvitationsBySender(SessionFactory sessionFactory, Session session, int from_id);
	
	public void sendInvitation (SessionFactory sessionFactory, Session session, int from_id, int to_id);
	
	public void acceptInvitation (SessionFactory sessionFactory, Session session, Invitation inv);
	
	public Invitation invitationFromId (SessionFactory sessionFactory, Session session, int id);
	
	public void deleteInvitation (SessionFactory sessionFactory, Session session, Invitation inv);
	
	
}
